package com.tledu.spring.service.impl;

import com.tledu.spring.dao.McMapper;
import com.tledu.spring.domain.Mc;
import com.tledu.spring.service.IMcService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: rupert-tears
 * @Date: Created in 10:34 2021/7/3
 * @Description: 优秀的人都在孤独的翻山越岭！
 */
@Service
@AllArgsConstructor
public class McServiceImpl implements IMcService {

    private McMapper mcMapper;

    @Override
    public List<Mc> list() {
        return mcMapper.list();
    }

    @Override
    public Integer insert(Mc mc) {
        return mcMapper.insert(mc);
    }

    @Override
    public Integer delete(Integer id) {
        return mcMapper.delete(id);
    }

    @Override
    public Mc selectById(Integer id) {
        return mcMapper.selectById(id);
    }

    @Override
    public Integer update(Mc mc) {
        return mcMapper.update(mc);
    }

    @Override
    public List<Mc> query(Integer id) {
        return mcMapper.query(id);
    }
}
